package com.neuedu.shixun.hospital2.controller;
import com.neuedu.shixun.hospital2.entity.Ks;
import com.neuedu.shixun.hospital2.entity.User;
import com.neuedu.shixun.hospital2.service.KsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@Slf4j
@RestController
@RequestMapping("/ks")
@CrossOrigin
public class KsController{
    @Autowired
    private KsService ksService;
    @GetMapping("getKs")
    public List<Ks> getKs(){
        return ksService.getKs();
    }
}
